<template>
  <div id="swiper">
    <van-swipe class="my-swipe" :autoplay="3000">
      <van-swipe-item v-for="item in list">
        <img :src="item.imgPath" alt="">
      </van-swipe-item>
    </van-swipe>

  </div>
</template>
<script>
export default {
  name: '',
  props: {
    list: {
      type: Array,
      default: () => {
        return []
      }
    }
  },
  data() {
    return {
      imgPath:'imgPath'
    };
  },
  // 子组件转换
  components: {},
  // 数据引入
  mounted() {
  },
  created() {

  },
  //点击函数事件
  methods: {},
  //计算事件
  computed: {},
  //数据监听
  watch: {},
  //过滤器
  filters: {},
  //设定自定义指令
  directives: {},
}
</script>
<style lang="scss" scoped>
.my-swipe .van-swipe-item {
  color: #fff;
  font-size: 20px;
  line-height: 150px;
  text-align: center;
  background-color: #39a9ed;
}

img {
  width: 100%;
}

/deep/ {
  .my-swipe .van-swipe-item {
    line-height: 0px;
  }
}
</style>